﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MCSFramework.Model.TEST;
using MCSFramework.SQLDAL.TEST;

namespace MCSFramework.BLL.TEST
{
    public class TEST_ClientBLL :BaseSimpleBll<TEST_Client>
    {
        private static string DALClassName = "MCSFramework.SQLDAL.TEST.TEST_ClientDAL";
        private TEST_ClientDAL _dal;

        #region 构造函数
        public TEST_ClientBLL()
            : base(DALClassName)
        {
            _dal = (TEST_ClientDAL)_DAL;
            _m = new TEST_Client();
        }

        public TEST_ClientBLL(int id)
            : base(DALClassName)
        {
            _dal = (TEST_ClientDAL)_DAL;
            FillModel(id);
        }

        public TEST_ClientBLL(int id, bool bycache)
            : base(DALClassName)
        {
            _dal = (TEST_ClientDAL)_DAL;
            FillModel(id, bycache);
        } 
        #endregion

        #region 静态GetModelList方法
        public static IList<TEST_Client> GetModelList(string condition)
        {
            return new TEST_ClientBLL()._GetModelList(condition);
        }
        #endregion
    }
}
